<template>
    <div v-for="(value, key) in user" :key="key">
      属性名是：{{ key }} --- 属性值是：{{ value }}
    </div>
  </template>
  <script setup>
  import { reactive } from 'vue'
  const user = reactive({
            id: '1',
            img:'https://img13.360buyimg.com/jdcms/s230x230_jfs/t1/196754/17/47169/221076/66f65b2aFff791143/a790c83f97770231.jpg',
            title: '索尼（SONY）WH-CH520 ',
            price: '￥349.00'   
        })
  </script>
  